package com.yycx.app.boot;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 底层APP接口服务启动入口
 *
 * @author zyf
 */
@EnableFeignClients(basePackages = {"com.yycx.**.feign"})
@SpringBootApplication(scanBasePackages = "com.yycx")
@RemoteApplicationEventScan(basePackages = "com.yycx")
@EnableDiscoveryClient
@ComponentScan(basePackages={"com.yycx"})
@EnableKnife4j
public class BaseApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApiApplication.class, args);
    }
}
